function setupGame()
	-- Only when this resource starts:
	if source ~= getResourceRootElement() then return end

	-- Show welcome message
	outputChatBox("Welcome to MTA:RPG!")
	
	-- Setup real time
	local realtime = getRealTime()
	local hours = realtime.hour
	local minutes = realtime.minute
	setTime(hours, minutes)
	setMinuteDuration(60000)
end

addEventHandler("onClientResourceStart", getRootElement(), setupGame)